import request from '@/util/axios';

const getAsyncList = (data) => {
    return request({
        url: '/tag/get',
        method: 'post',
        data: {
            data: data
        }
    })
}

const addAsyncList = (data) => {
    return request({
        url: '/tag/add',
        method: 'post',
        data: {
            data: data
        }
    })
}
const deleteAsyncList = (id) => {
    return request({
        url: '/tag/deleted',
        method: 'delete',
        data: {
            id: id
        }
    })
}
const modifyAsyncList = (data) => {
    return request({
        url: '/tag/modify',
        method: 'post',
        data: {
            id: data.id,
            data: data
        }
    })
}

export default {
    getAsyncList,
    addAsyncList,
    deleteAsyncList,
    modifyAsyncList
}